package com.ztd.test;

import android.util.Log;

/**
 * Created by Administrator on 2017/2/23.
 */

public class Singleton {

    public static Singleton instance() {
        return SingletonHolder.mOnlyInstance;
    }

    private static class SingletonHolder {
        private static final Singleton mOnlyInstance = new Singleton();
    }

    public void test(String msg) {
        Log.d("ztd", msg);
    }
}
